#ifndef MEASUREPARALLEL_HPP
#define MEASUREPARALLEL_HPP

#include <iostream>
#include <string>

class ParallelPortion{
public:
	
	static ParallelPortion& getInstance() {
		static ParallelPortion instance;
		return instance;
	}

	ParallelPortion(ParallelPortion const &) = delete;	// disallow copying.
	void operator= (ParallelPortion const &) = delete;	// disallow assigning.

	void increment(double time) { m_time += time; }
	double time() { return m_time; }

private:
	ParallelPortion() {  m_time = 0.0; }

	double m_time;
};

#endif